using System;
using System.Reflection;

namespace Handrise.BasicModal.Serialization.Exception
{
    /// <summary>
    /// Summary description for RegisterSurrogateException.
    /// </summary>
    public class RegisterSurrogateException : System.Exception
    {
        public RegisterSurrogateException(MethodInfo m)
            : base("Error trying to register as surrogate method " +
            m.Name + " defined in type " + m.DeclaringType.Name + ", type is not marked with SurrogateAttribute")
        {
        }
    }
}
